#include "StdAfx.h"
#include "glLighting.h"

glLighting* glLighting::l_Instance=NULL;
glLighting::glLighting(){}
glLighting::~glLighting(){}

glLighting* glLighting::GetInstance()
{
	if (l_Instance == NULL)
	{
		printf("Init SingleTon class\n");
		l_Instance = new glLighting;
	}

	return l_Instance;
}

void glLighting::DestroyInstance()
{
	if (l_Instance != NULL)
	{
		delete l_Instance;
		l_Instance = NULL;
	}
}
